const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 获取token
  token: state => state.user.token,
  // 获取用户头像
  avatar: state => state.user.userInfo.staffPhoto,
  // 获取用户id
  userId: state => state.user.userInfo.userId,
  // 获取用户名
  name: state => state.user.userInfo.username,
  // 获取用户路由权限
  routes: state => state.user.routes,
  company: state => state.user.userInfo.company, // 公司名称
  departmentName: state => state.user.userInfo.departmentName, // 部门名称
  points: state => state.user.userInfo.roles.points // 按钮权限点
}
export default getters
